package org.gnuhpc.p2pdroid.tools;

public class Log {
	public static int LEVEL = android.util.Log.DEBUG;

	static public void d(String tag, String msgFormat, Object... args) {
		if (LEVEL <= android.util.Log.DEBUG) {
			android.util.Log.d(tag, String.format(msgFormat, args));
		}
	}

	static public void d(String tag, Throwable t, String msgFormat,
			Object... args) {
		if (LEVEL <= android.util.Log.DEBUG) {
			android.util.Log.d(tag, String.format(msgFormat, args), t);
		}
	}
}
